home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CMultStdPopupPane 2.0 / READ ME
Encoding:
Text File  |  1994-11-30  |  1.7 KB  |  42 lines  |  [TEXT/R*ch]

  1. Name: CMultStdPopupPane
  2. Version: 2.0
  3. Category: classes
  4. Contributor: Michael Abramowicz <MBABRAMOWICZ@AMHERST.EDU>
  5. Date: 93-07-06
  6. TCL-Version: 1.1.2, 1.1.3
  7. TCL-Language: C, C++
  8. Copyright: Copyright (C) 1993 Michael Abramowicz. All rights reserved.
  9.  
  10. A subclass of CStdPopupPane that allows for the same pop-up menu to be 
  11. used twice independently at the same time, either within one window or 
  12. in separate windows.
  13.         
  14. When you have one pop-up menu that is used more than once within one
  15. window, you must create a separate pseudo-menu id for each instance
  16. of the pop-up menu pane. This menu id should not correspond to the 
  17. menu id of any menu resource your application uses. This class 
  18. "tricks" the TCL into using the pseudo-menu id for the menu; it is
  19. this mechanism which allows several instances of the same menu to
  20. function independently.
  21.         
  22. If you use this class, your program must not have any menus whose
  23. menu id is 5368 or 5369. Deactivated menus’ ids are set to one of
  24. these values (which I picked completely randomly). This prevents
  25. the TCL from changing all instances of a pop-up menu pane that
  26. appears in several different windows when the settings on a single
  27. such pane are changed.
  28.         
  29. If you create an instance of this class in a window that is already
  30. activated, you must activate the menu manually so that it works 
  31. correctly.
  32.         
  33. This class relies on the inner workings of the CBartender class.
  34. Changes in CBartender in v. 1.1.3 of the TCL required a major
  35. reworking of this class. Thus, this class will NOT work with
  36. v. 1.1.2 or earlier of the TCL. (The problem is related to how
  37. the TCL deals with an attempt to add the same menu twice to
  38. the bartender.)
  39.         
  40. It would be easy to modify this class to work with arrow-pop-up
  41. panes rather than standard ones.
  42.